package designPattern.creation.builderpattern;

/**
 * @author 张琪
 * @date 2023/1/29 16:10
 */
public class ConcreteBuilder implements Builder{

    Product product;
    public ConcreteBuilder() {
        product = new Product();
    }

    @Override
    public void buildPartA() {
        System.out.println(product.a = "A1");
    }

    @Override
    public void buildPartB() {
        System.out.println(product.b = "B1");

    }

    @Override
    public void buildPartC() {
        System.out.println(product.c = "C1");

    }

    @Override
    public Product getResult() {
        return product;
    }
}
